package com.bt.design.controller;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * freeMarker配置测试
 * 
 * @author Mark
 *
 */
@Controller
public class FtlTestController {
	
	@RequestMapping("/hello/{name}") 
	public String hello(@PathVariable("name") String name, Model model) { 
		model.addAttribute("name", name); 
		model.addAttribute("age","25"); 
		model.addAttribute("sex","man"); 
		model.addAttribute("birth",new Date()); 
		return "ftl/hello"; 
	}
}
